78 static unsigned int node_id_count_;
96 NodeBase(
const std::string& _category,
const std::string& _type =
"Undefined",
const std::string& _name =
"");
99 unsigned int nodeId()
const;
106 void setType(
const std::string& _type);
107 void setName(
const std::string& _name);
118inline NodeBase::NodeBase(
const std::string& _category,
const std::string& _type,
const std::string& _name)
120 node_id_(++node_id_count_),
121 node_category_(_category),
Base class for Nodes.
Definition: node_base.h:74
std::string node_type_
Text label identifying the type or subcategory of node ("Pin Hole", "Point 2d", etc)
Definition: node_base.h:87
unsigned int node_id_
Node id. It is unique over the whole Wolf Tree.
Definition: node_base.h:85
bool isRemoving() const
Definition: node_base.h:149
std::string node_category_
Text label identifying the category of node ("SENSOR", "FEATURE", etc)
Definition: node_base.h:86
std::string getType() const
Definition: node_base.h:139
bool is_removing_
A flag for safely removing nodes from the Wolf tree. See remove().
Definition: node_base.h:91
void setName(const std::string &_name)
Definition: node_base.h:159
std::string getName() const
Definition: node_base.h:144
unsigned int nodeId() const
Definition: node_base.h:129
std::string node_name_
Definition: node_base.h:88
ProblemWPtr problem_ptr_
Definition: node_base.h:83
virtual ~NodeBase()=default
std::string getCategory() const
Definition: node_base.h:134
virtual void setProblem(ProblemPtr _prob_ptr)
Definition: node_base.h:174
void setType(const std::string &_type)
Definition: node_base.h:154
NodeBase(const std::string &_category, const std::string &_type="Undefined", const std::string &_name="")
Definition: node_base.h:118
ProblemConstPtr getProblem() const
Definition: node_base.h:164
virtual bool hasChildren() const =0
Definition: capture_base.h:23